<template>
	<view class="content">
		
		<view class="user-home">
			<view class="user-img">
				<image v-if="login.headpic" :src="login.headpic"></image>
				<image v-else src="../../static/icon/6.jpg"></image>
			</view>
			<view class="user-info">
				<view class="state">
					<view class="state-info">
						<view class="num">14</view>
						<view class="guanzhu">关注</view>
					</view>
					<view class="state-info">
						<view class="num">16</view>
						<view class="fensi">粉丝</view>
					</view>
					<view class="state-info">
						<view class="num">0</view>
						<view class="dongtai">动态</view>
					</view>
				</view>
				<view class="edit">编辑资料</view>
			</view>
		</view>
		
		<view class="jianjie">简介：这个人很懒，什么也没留下</view>
		
		<view class="none">暂无内容</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				login: [],
			}
		},
		methods: {
			
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title: "懂你快报"
			})
		},
		mounted() {
			uni.getStorage({
				key: 'userSession',
				success: res => {
					// console.log(res.data);
					this.login = res.data
				}
			});
		}
	}
</script>

<style scoped lang="scss">
	
	.content {
		padding: 0 30rpx;
		box-sizing: border-box;
	}

	.user-home {
		display: flex;
		width: 100%;
		margin-top: 40rpx;
		
		.user-img {
			image {
				width: 180rpx;
				height: 180rpx;
				border-radius: 50%;
			}
		}
		
		.user-info {
			display: flex;
			justify-content: space-around;
			flex-direction: column;
			margin-left: 40rpx;
			flex: 1;
			.state {
				display: flex;
				justify-content: space-around;
				text-align: center;
				
				.state-info {
					
					.guanzhu, .fensi, .dongtai {
						color: #999;
						font-size: 26rpx;
					}
					
					.num {
						color: #333;
						font-size: 28rpx;
						font-weight: 800;
					}
				}
				
			}
			.edit {
				width: 100%;
				height: 60rpx;
				text-align: center;
				line-height: 60rpx;
				box-sizing: border-box;
				border: 1px solid #aaaaaa;
				color: #aaaaaa;
				border-radius: 5px;
			}
		}
	}
	
	.jianjie {
		padding: 30rpx 0;
		color: #666;
		font-size: 26rpx;
		border-bottom: 1px solid #edebee;
	}
	
	.none {
		text-align: center;
		margin-top: 300rpx;
		font-size: 32rpx;
		color: #666;
	}
	
	

</style>
